package com.zzt.blog.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-04-17
 * Time: 15:26
 */
@Data
public class UserLoginRequest {
    @NotNull(message = "用户名不能为空")
    @Length(max = 20, min = 2)
    private String username;
    @NotNull(message = "密码不能为空")
    @Length(min = 5, message="密码不能小于5")
    private String password;
}
